package lab01;

public class Test13 {
    public static void main(String[] args) {
        int num=0;

        while(num<=1000) {
            num++;
            int ones = num % 10;
            int tens = num / 10 % 10;
            int hundreds = num / 10 / 10 % 10;
            if (num == ones * ones * ones + tens * tens * tens + hundreds * hundreds * hundreds) {
                System.out.println(num);
            }
        }


    }
}
